package com.leo.customer.entity.pojo

import com.leo.customer.entity.CreateTimeAndUpdateTime
import javax.persistence.*

@Entity
data class AccessoryApply(
        var planShare: Float = 10F,
        @ManyToOne(targetEntity = AccessoryPlan::class, cascade = [CascadeType.PERSIST, CascadeType.MERGE], fetch = FetchType.LAZY)
        @JoinColumn(name = "plan_id")
        var plan: AccessoryPlan = AccessoryPlan(),
        var userId:Int = 0
):CreateTimeAndUpdateTime()
